/**
 * @Author: zhuangli.qin
 * @Date: 2022-06-16 07:49:00
 * @LastEditors: cest cestrmail@163.com
 * @LastEditTime: 2023-03-31 16:42:51
 * @FilePath: /uni-preset-vue-cli-extension-park/src/utils/service/request/index.js
 * @Description:
 * @Copyright (c) 2022 by cestrmail@163.com by zhuangli.qin, All Rights Reserved.
 */
import Request from '@/libs/luch-request/luch-request' // 下载的插件
// import Request from 'luch-request' // 使用npm

// 引入配置
import config from './config/config'

const http = new Request()

// 初始化请求配置
http.setConfig(defaultConfig => {
  return { ...defaultConfig, ...config }
})

require('./requestInterceptors')(http)

require('./responseInterceptors')(http)

// export http = http
export { http }
